﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IDAL;
using KPIS.GERP.GHRMS.IBLL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class HisEnglishBLL:IHisEnglishBLL
    {
        private static readonly HisEnglishDAL dal = new HisEnglishDAL();

        public DataSet LoadHisEnglishTest(Nullable<int> Sequence, Nullable<int> EmpSequence)
        {
            return dal.LoadHisEnglishTest(Sequence, EmpSequence);
        }

        public void Insert(Nullable<int> EmpSequence, string InstitutesName, Nullable<DateTime> StartDate, Nullable<DateTime> EndDate
            , string Remarks, int CreatedBy)
        {
            try
            {
                dal.Insert(EmpSequence, InstitutesName, StartDate, EndDate, Remarks, CreatedBy);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Update(int Sequence, string InstitutesName, Nullable<DateTime> StartDate, Nullable<DateTime> EndDate
            , string Remarks, int UpdatedBy)
        {
            try
            {
                dal.Update(Sequence, InstitutesName, StartDate, EndDate, Remarks, UpdatedBy);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Delete(int Sequence, int UpdatedBy)
        {
            try
            {
                dal.Delete(Sequence, UpdatedBy);
            }
            catch
            {
                throw new Exception("");
            }
        }
    }
}
